package com.edu.learning.executors;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author ll
 * @Date 2017/11/14 15:18
 */
@Component
@Scope("prototype")
public class ThreadDemo implements Runnable {

    private static final Logger LOGGER = LoggerFactory.getLogger(ThreadDemo.class);

    @Override
    public void run() {
        LOGGER.info("Called from thread");
    }
}
